﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace FrogEngine
{
	public class Vertex : IPrimitive
	{
		public Vertex(Vector3 pos, IEnumerable<Triangle> tris)
		{
			this.position = pos;
			this.triangles = new HashSet<Triangle>(tris);
		}

		public IEnumerable<Vector3> Points { get { return new Vector3[] { position }; } }

		private Vector3 position;
		public Vector3 Position
		{
			get { return position; }
			set { position = value; }
		}

		private HashSet<Triangle> triangles;
		public HashSet<Triangle> Triangles
		{
			get { return triangles; }
		}
	}
}
